﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InterviewQuestions.aspx.cs"
    Inherits="BOH.AccreditationSystem.InterviewQuestions" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link href="../style/css.css" type="text/css" rel="Stylesheet" />

    <script src="../js/jquery-1.3.2.js" type="text/javascript"></script>

    <script src="../js/common.js" type="text/javascript"></script>

</head>
<body>
    <form id="form1" runat="server">
    <div id="divNavigation">
        当前位置:<a href="OverView.aspx" target="frameControl">面试试题管理</a> >> 面试试题
    </div>
    <div id="bodyDiv">
        <div id="divSearch">
            <center>
                <table width="98%" class="Grid">
                    <tr>
                        <td align="right" style="width: 120px;">
                            题干
                        </td>
                        <td align="left" colspan="3">
                            <asp:TextBox ID="txtQuestionContent" runat="server" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            学科组
                        </td>
                        <td align="left">
                            <asp:DropDownList ID="drpSubject" runat="server" OnSelectedIndexChanged="drpSubject_SelectedIndexChanged"
                                AutoPostBack="true">
                            </asp:DropDownList>
                        </td>
                        <td align="right">
                            专业
                        </td>
                        <td align="left">
                            <asp:DropDownList ID="drpSpeciality" runat="server">
                                <asp:ListItem Text="请选择申报专业" Value="-1"></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                </table>
            </center>
            <p>
                &nbsp;&nbsp;<asp:Button ID="butSearch" runat="server" Text="查询" Width="120px"   onclick="butSearch_Click" />&nbsp;&nbsp;
                <%--<asp:Button ID="butAdd" runat="server" Text="新增" Width="120px" 
                    onclick="butAdd_Click"/>--%>
            </p>
        </div>
    </div>
    <div id="divGrid">
        <span id="spanTotal" runat="server" visible="false">共有 <asp:Label ID="labTotalNo" runat="server"></asp:Label> 条记录</span>
        <asp:GridView ID="InterviewQuestionsList" runat="server" AutoGenerateColumns="False"
            Width="90%" CssClass="Grid" AllowPaging="True" PageSize="15"  onrowdeleting="InterviewQuestionsList_RowDeleting" >
            <PagerSettings Mode="NumericFirstLast" />
            <Columns>
                <asp:BoundField HeaderText="学科组" DataField="Question_Subject" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" ItemStyle-VerticalAlign="Top" ItemStyle-Width="80px" />
                <asp:TemplateField HeaderText="专业">
                    <HeaderStyle HorizontalAlign="Left" />
                    <ItemStyle Width="120px" VerticalAlign="Top" HorizontalAlign="Left" />
                    <ItemTemplate>
                        <asp:Label ID="labQuestionSpecialty" runat="server" Text='<%#Eval("Question_Specialty") %>' ></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="申报职称" HeaderStyle-HorizontalAlign="Left">
                    <ItemStyle Width="100px" HorizontalAlign="Left" VerticalAlign="Top" />
                    <ItemTemplate>
                        <asp:Label ID="labJobRank" runat="server" Text='<%#Eval("JobRank") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="题干" HeaderStyle-HorizontalAlign="Left">
                    <ItemStyle Width="300px" HorizontalAlign="Left" VerticalAlign="Top" Wrap="true" />
                    <ItemTemplate>
                        <asp:Label ID="labQ" runat="server" Text='<%#Eval("Question_Content") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                
                <asp:TemplateField HeaderText="编辑" HeaderStyle-Width="50px">
                    <HeaderStyle Width="50px" HorizontalAlign="Center" />
                    <ItemStyle Width="50px" HorizontalAlign="Center" VerticalAlign="Top" />
                    <ItemTemplate>
                        <a href="InterviewQuestionModify.aspx?QID=<%#Eval("QID") %>" target="_blank">编辑</a>&nbsp;&nbsp;
                        <asp:HiddenField ID="hidQID" runat="server" Value='<%#Eval("QID") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:CommandField HeaderText="删除" ButtonType="Link" DeleteText="删除" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ItemStyle-VerticalAlign="Top" ShowDeleteButton="true"  HeaderStyle-Width="50px" ItemStyle-Width="50px"/>
            </Columns>
        </asp:GridView>
        <div id="divPager">
            <asp:Label ID="labNoRecord" Visible="false" runat="server" Text="查询结果为空!"></asp:Label>
            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" PageSize="15" AlwaysShow="True" Visible =false
                OnPageChanged="AspNetPager1_PageChanged" ShowCustomInfoSection="Left" CustomInfoSectionWidth="35%"
                ShowPageIndexBox="always" PageIndexBoxType="DropDownList" CustomInfoHTML="第<font color='red'><b>%currentPageIndex%</b></font>页，共%PageCount%页，每页显示%PageSize%条记录">
            </webdiyer:AspNetPager>
        </div>
    </div>
    </form>
</body>
</html>

